package com.stone.zeus.component.grpc.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * @author fujianjian
 * @date 2023/3/21 15:22
 **/
@Slf4j
// @Component
@EnableScheduling
public class DemoTask {

    @Scheduled(cron = "0/40 * * * * ?")
    public void scheduleGreet() {
        log.info("schedule greet .........................");
    }
}
